import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import '../components/header.dart';

class ChatWindow extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: <Widget>[
          AppHeader(
            leading: Container(
              width: ScreenUtil.getInstance().setWidth(80),
              child: IconButton(
                alignment: Alignment.centerRight,
                icon: Icon(Icons.arrow_back_ios),
                highlightColor: Colors.transparent,
                iconSize: 14,
                onPressed: () {
                  Navigator.of(context).pop();
                },
              ),
            ),
            title: 'hello',
          ),
          Text(
            '这里是聊天界面',
            style: Theme.of(context).textTheme.title,
          )
        ],
      ),
    );
  }
}
